package com.yun.lc.modal;

import com.yun.lc.dao.DBProvider;

import java.util.List;
import java.util.Map;

public class UserLoginModal {


    public boolean isLogined(String strUserName, String strUserPsw) {
        boolean isOK = false;
        String strSql = "SELECT * FROM jsp_user WHERE username = '" + strUserName + "' AND userpsw = '" + strUserPsw + "'";
        List<Map<String, Object>> list = DBProvider.query4ListMap(strSql);
        if (list != null && list.size() > 0) {
            isOK = true;
        }
        return isOK;


    }
}